package org.agilest.demo.gallary;

import android.app.Activity;
import android.os.Bundle;

/**
 * Created by david on 15/11/9.
 */
public class CoverFlowActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.onCreate(savedInstanceState);


        setContentView(R.layout.layout_coverflow);
        Integer[] images={
                R.drawable.a1,
                R.drawable.a2,
                R.drawable.a3,
                R.drawable.a4,
                R.drawable.a5,
                R.drawable.a6,
                R.drawable.a7,
                R.drawable.a8
        };

        ImageAdapter adapter = new ImageAdapter(this, images);
        adapter.createReflectedImages();

        final CoverFlow galleryFlow = (CoverFlow) findViewById(R.id.coverFlow);
        galleryFlow.setAdapter(adapter);

    }


}

